﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Genealogy_Builder
{
    public class Place
    {
        public static int ID = 0;

        public int place_id;
        public string zip_code;
        public string city;
        public string state;
        public string country;

        public Place(int id, string zip, string cty, string sta, string cntry)
        {
            place_id = id;
            zip_code = zip;
            city = cty;
            state = sta;
            country = cntry;
        }

        public Place(string zip, string cty, string sta, string cntry)
        {
            place_id = ID++;
            zip_code = zip;
            city = cty;
            state = sta;
            country = cntry;
        }

        public override string ToString()
        {
            string place;
            place = country + " - " + city + ", " + state;
            return place;
        }
    }
}
